package com.atguigu.gmall.payment.service;

import com.alipay.api.AlipayApiException;

public interface AlipayService {

    /**
     * 创建支付二维码.
     * @param orderId
     * @return
     */
    String createAliPay(Long orderId) throws AlipayApiException;

    /**
     * 推荐交易
     * @param orderId
     * @return
     */
    Boolean refund(Long orderId);

    /**
     * 关闭支付宝交易记录。
     * @param orderId
     * @return
     */
    Boolean closePay(Long orderId);

    /**
     * 查看交易状态
     * @param orderId
     * @return
     */
    Boolean checkPayment(Long orderId);

}
